package com.gupao.javavip.dubbo.client;

import lombok.extern.apachecommons.CommonsLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CommonsLog
public class UserController {
    @Autowired
    private UserService service;

    @GetMapping("/addUser")
    public void addUser() {
        service.addUser();
    }

    @GetMapping("/batchAddUser")
    public void batchAddUser() {
        service.batchExecuteRPCInvoke();
    }

    @GetMapping("/sayhello")
    public void sayHello() {
        service.sayHello();
    }
}
